]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Remove use of G_CONST_RETURN macro.
authorGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 13 Mar 2011 13:29:13 +0000 (14:29 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Sun, 13 Mar 2011 21:03:47 +0000 (22:03 +0100)
This is going to be deprecated.

https://bugzilla.gnome.org/show_bug.cgi?id=644632

src/st/st-entry.c
src/st/st-entry.h
src/st/st-label.c
src/st/st-label.h
src/st/st-tooltip.c
src/st/st-tooltip.h
src/st/st-widget.h

index ef25ab3a4b84f682e18b73597af4f4f35cd1d324..d70475d9d8d6f20ea8e377132c1dcc9f9c9ba7fd 100644 (file)
@@ -735,7 +735,7 @@ st_entry_new (const gchar *text)
  *
  * Returns: the text for the entry. This must not be freed by the application
  */
-G_CONST_RETURN gchar *
+const gchar *
 st_entry_get_text (StEntry *entry)
 {
   g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
@@ -843,8 +843,7 @@ st_entry_set_hint_text (StEntry     *entry,
  * Returns: the current value of the hint property. This string is owned by the
  * #StEntry and should not be freed or modified.
  */
-G_CONST_RETURN
-gchar *
+const gchar *
 st_entry_get_hint_text (StEntry *entry)
 {
   g_return_val_if_fail (ST_IS_ENTRY (entry), NULL);
index 947705437593bf56f4522a616634d6eebc0523a1..7febbb5ec92da4c527358315fcae0e7bf3a57b73 100644 (file)
@@ -65,14 +65,14 @@ struct _StEntryClass
 GType st_entry_get_type (void) G_GNUC_CONST;
 
 StWidget *            st_entry_new              (const gchar *text);
-G_CONST_RETURN gchar *st_entry_get_text         (StEntry     *entry);
+const gchar *         st_entry_get_text         (StEntry     *entry);
 void                  st_entry_set_text         (StEntry     *entry,
                                                  const gchar *text);
 ClutterActor*         st_entry_get_clutter_text (StEntry     *entry);
 
 void                  st_entry_set_hint_text    (StEntry     *entry,
                                                  const gchar *text);
-G_CONST_RETURN gchar *st_entry_get_hint_text    (StEntry     *entry);
+const gchar *         st_entry_get_hint_text    (StEntry     *entry);
 
 void st_entry_set_primary_icon             (StEntry      *entry,
                                             ClutterActor *icon);
index 124928e8076e5d3dd6f5ff83c3aaf0a0a395147e..53fd844b33aefbef2ac19942382b0cacec6e1614 100644 (file)
@@ -355,7 +355,7 @@ st_label_new (const gchar *text)
  *
  * Returns: the text for the label. This must not be freed by the application
  */
-G_CONST_RETURN gchar *
+const gchar *
 st_label_get_text (StLabel *label)
 {
   g_return_val_if_fail (ST_IS_LABEL (label), NULL);
index abe32d9d89567e40540f22f395b3fd75a761e67c..65164ce292168d4a2e6d7770765686fd32295d09 100644 (file)
@@ -60,11 +60,11 @@ struct _StLabelClass
 
 GType st_label_get_type (void) G_GNUC_CONST;
 
-StWidget *            st_label_new              (const gchar *text);
-G_CONST_RETURN gchar *st_label_get_text         (StLabel     *label);
-void                  st_label_set_text         (StLabel     *label,
-                                                 const gchar *text);
-ClutterActor *        st_label_get_clutter_text (StLabel     *label);
+StWidget *     st_label_new              (const gchar *text);
+const gchar *  st_label_get_text         (StLabel     *label);
+void           st_label_set_text         (StLabel     *label,
+                                          const gchar *text);
+ClutterActor * st_label_get_clutter_text (StLabel     *label);
 
 G_END_DECLS
 
index c452e18c763c6a1eaac398814e6e7258690808f0..09e7aa76508ad5a078497a002aa0a60f2bfbf919 100644 (file)
@@ -377,7 +377,7 @@ st_tooltip_update_position (StTooltip *tooltip)
  *
  * Returns: the text for the tooltip. This must not be freed by the application
  */
-G_CONST_RETURN gchar *
+const gchar *
 st_tooltip_get_label (StTooltip *tooltip)
 {
   g_return_val_if_fail (ST_IS_TOOLTIP (tooltip), NULL);
@@ -489,7 +489,7 @@ st_tooltip_set_tip_area (StTooltip             *tooltip,
  * Returns: the #ClutterGeometry, owned by the tooltip which must not be freed
  * by the application.
  */
-G_CONST_RETURN ClutterGeometry*
+const ClutterGeometry*
 st_tooltip_get_tip_area (StTooltip *tooltip)
 {
   g_return_val_if_fail (ST_IS_TOOLTIP (tooltip), NULL);
index 123f6c16d41f8e9b980890cb2d28d88a469ed4e2..5f6f02a6e44241b1a9010b5c3dd56361ec0167c4 100644 (file)
@@ -60,13 +60,13 @@ struct _StTooltipClass
 
 GType st_tooltip_get_type (void) G_GNUC_CONST;
 
-G_CONST_RETURN gchar *st_tooltip_get_label (StTooltip   *tooltip);
-void                  st_tooltip_set_label (StTooltip   *tooltip,
-                                            const gchar *text);
+const gchar * st_tooltip_get_label (StTooltip   *tooltip);
+void          st_tooltip_set_label (StTooltip   *tooltip,
+                                    const gchar *text);
 
-void                            st_tooltip_set_tip_area (StTooltip             *tooltip,
-                                                         const ClutterGeometry *area);
-G_CONST_RETURN ClutterGeometry* st_tooltip_get_tip_area (StTooltip             *tooltip);
+void                   st_tooltip_set_tip_area (StTooltip             *tooltip,
+                                                const ClutterGeometry *area);
+const ClutterGeometry* st_tooltip_get_tip_area (StTooltip             *tooltip);
 
 G_END_DECLS
 
index 81c9928e10c14677aa90ad7fd4bbf137fe09ec05..7f5efec7aa41edf3a4807aa022ef69a279b49672 100644 (file)
@@ -96,7 +96,7 @@ void                  st_widget_add_style_pseudo_class    (StWidget        *acto
                                                            const gchar     *pseudo_class);
 void                  st_widget_remove_style_pseudo_class (StWidget        *actor,
                                                            const gchar     *pseudo_class);
-G_CONST_RETURN gchar *st_widget_get_style_pseudo_class    (StWidget        *actor);
+const gchar *         st_widget_get_style_pseudo_class    (StWidget        *actor);
 gboolean              st_widget_has_style_pseudo_class    (StWidget        *actor,
                                                            const gchar     *pseudo_class);
 
@@ -106,13 +106,13 @@ void                  st_widget_add_style_class_name      (StWidget        *acto
                                                            const gchar     *style_class);
 void                  st_widget_remove_style_class_name   (StWidget        *actor,
                                                            const gchar     *style_class);
-G_CONST_RETURN gchar *st_widget_get_style_class_name      (StWidget        *actor);
+const gchar *         st_widget_get_style_class_name      (StWidget        *actor);
 gboolean              st_widget_has_style_class_name      (StWidget        *actor,
                                                            const gchar     *style_class);
 
 void                  st_widget_set_style                 (StWidget        *actor,
                                                            const gchar     *style);
-G_CONST_RETURN gchar *st_widget_get_style                 (StWidget        *actor);
+const gchar *         st_widget_get_style                 (StWidget        *actor);
 void                  st_widget_set_theme                 (StWidget        *actor,
                                                            StTheme         *theme);
 StTheme *             st_widget_get_theme                 (StWidget        *actor);